@font-face {
  font-family: 'palyerIconfont';
  src: url('anime_music_icon.woff?t=1535597309299#iconfont') format('woff'),
    url('anime_music_icon.svg?t=1535597309299#iconfont') format('svg');
}

%font-shared {
  font-family: 'palyerIconfont' !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/**
* margin-top: xxxem; relative with current font-size!!!
*/
.player {
  background-size: 100% 100%;
  background-position: center center;
  font-size: 20px;
  color: #fff;
  &__name {
    position: absolute;
    font-size: 2em;
    top: 50%;
    right: 20px;
    text-shadow: 0px 0px 2px black;
    white-space: nowrap;
    cursor: default;
    margin-top: -1em;
  }
  &__next {
    @extend %font-shared;
    position: absolute;
    top: 50%;
    left: 2.2em;
    font-size: 3em;
    text-shadow: 0px 0px 1px black;
    text-shadow: 0px 0px 1px rgb(0, 0, 0);
    &:hover {
      text-shadow: 0px 0px 5px rgb(0, 0, 0);
    }
    &::before {
      content: '\e674';
    }
  }
  &__control {
    @extend %font-shared;
    position: absolute;
    top: 50%;
    left: 10px;
    font-size: 5em;
    margin-top: -0.5em;
    text-shadow: 0px 0px 1px rgb(0, 0, 0);
    &:hover {
      text-shadow: 0px 0px 5px rgb(0, 0, 0);
    }
    &--play {
      &::before {
        content: '\e6e1';
      }
    }
    &--pause {
      &::before {
        content: '\e70d';
      }
    }
  }
  &__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(80, 168, 255, 0.6);
    height: 7px;
    width: 100%;
    cursor: pointer;
    .now {
      transition: width 0.3s;
      -moz-transition: width 0.3s;
      -webkit-transition: width 0.3s;
      -o-transition: width 0.3s;
      background-color: rgba(255, 255, 255, 0.8);
      height: 7px;
      width: 0px;
    }
  }
  &__time {
    font-size: 1.6em;
    position: absolute;
    top: 50%;
    right: 20px;
    margin-top: 0.6em;
    text-shadow: 0px 0px 2px rgb(0, 0, 0);
    cursor: default;
  }
}

@media (max-width: 720px) {
  .player {
    font-size: 8px;
  }
}
